package com.qckj.amz.utils.pinYin4j;

import com.qckj.common.utils.StringUtils;

import java.util.Arrays;

/**
 * @author luchuan
 * @version v1.0
 * @date 2023/1/19 0019
 **/
public class Test2 {

    public static void main(String[] args) {
        // pin4j 简码 和 城市编码
        String s1 = "";
        String[] headArray = PinYin4jUtils.getHeadByString(s1); // 获得每个汉字拼音首字母
        System.out.println(Arrays.toString(headArray));
        String join = StringUtils.join(headArray);
        System.out.println(join);


        String s2 = "长城";
        System.out.println(Arrays.toString(PinYin4jUtils.stringToPinyin(s2, false, ",")));
    }

}
